class Person<T> {
    name: T

    constructor(public age: number, public sex: string) {
        this.age = age
        this.sex = sex
    }

    userInfo(address: T): string {
        return `${this.name}家住在${address}`
    }
}

const zs = new Person<number>(1, "男")
